package com.lzg.quest.service;

import com.lzg.quest.mapper.IQuesCommInfoDao;
import com.lzg.quest.pojo.QuesCommInfoDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Date;

/**
 * ex_liuzhigao
 * @Date: 2020/6/29 0026
 */

@Service
public class QuesCommInfoService {

    @Autowired
    private IQuesCommInfoDao quescomminfo;

    public ArrayList<QuesCommInfoDTO> queryQuesCommInfo(String comm6) throws Exception{
        return quescomminfo.queryQuesCommInfo(comm6);
    }

    public int insertQuesCommInfo(QuesCommInfoDTO quesCommInfoDTO) throws Exception{
        return quescomminfo.insertQuesCommInfo(quesCommInfoDTO);
    }

    public QuesCommInfoDTO queryQuesDetilById(Integer id) throws Exception{
        return quescomminfo.queryQuesDetilById(id);
    }

    public ArrayList<QuesCommInfoDTO> queryQuesCommInfoByDate(Date date1, Date date2,String comm6) {
        return quescomminfo.queryQuesCommInfoByDate(date1,date2,comm6);
    }
}
